﻿<Popup x:Class="TextEditor.UfePopup"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" MaxHeight="120" MinWidth="100">

    <ListBox x:Name="list" MouseDoubleClick="OnMouseDoubleClick" BorderThickness="1" BorderBrush="Gray">
        <ListBox.ItemTemplate>
            <DataTemplate>
                <StackPanel Orientation="Horizontal">
                    <Image Source="{Binding Image}" Height="16" Width="16"/>
                    <TextBlock Text="{Binding DisplayName}" Margin="5,0,0,0" VerticalAlignment="Center"/>
                </StackPanel>
            </DataTemplate>
        </ListBox.ItemTemplate>
    </ListBox>

</Popup>
